package com.ruoyi.bussiness.controller;

import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.Schedule;
import com.ruoyi.system.domain.vo.ScheduleVo;
import com.ruoyi.system.domain.vo.ScheduleVo;
import com.ruoyi.system.service.IScheduleService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xiaxiaya
 * @date 2025/6/25 22:14
 */
@RestController
@RequestMapping("/bussiness/duty")
@RequiredArgsConstructor
public class DutyController {

    private final IScheduleService scheduleService;

    @RequestMapping("/details")
    public TableDataInfo<ScheduleVo> details(Schedule schedule, PageQuery pageQuery) {
        return scheduleService.queryDutyDetails(schedule,pageQuery);
     }
}
